c program to calculate the sum of natural numbers